<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ page isErrorPage="true" contentType="text/html" %>
<%@ taglib prefix="log" uri="http://jakarta.apache.org/taglibs/log-1.0" %>
<fmt:setBundle basename="hospital"/>
<body>
<h2><fmt:message key="main_title"/></h2>
<hr size="2"/>
<fieldset>
<h2>ERROR HAS OCCURED</h2>
<c:set var="message" value="${errorMessage}" scope= "session"/>
<p2>${message}</p2>
<log:fatal>
  -----
  ${now}
  Request that failed: ${pageContext.errorData.requestURI}
  Status code: ${pageContext.errorData.statusCode}
  Exception: ${pageContext.errorData.throwable}
  -----
</log:fatal>
</body>

